import { defineStore } from 'pinia';
import sheep from '@/sheep';

const pc = defineStore({
  id: 'pc',
  state: () => ({
    // pc端侧边栏下标
    sidebarOptions: 0,
    // pc端姓氏文化下标
    sidebarCulture: 0,
  }),
  actions: {
    // pc端侧边栏下标
    setSidebarOptions(options) {
      this.sidebarOptions = options;
    },
    // pc端姓氏文化下标
    setSidebarCulture(options) {
      this.sidebarCulture = options;
    },
  },
  persist: {
    enabled: true,
    strategies: [
      {
        key: 'pc-store',
      },
    ],
  },
});

export default pc;